#ifndef GETBACK_H
#define GETBACK_H

#include <QWidget>
#include"Global.h"
namespace Ui {
class GetBack;
}

class GetBack : public QWidget
{
    Q_OBJECT

public:
    explicit GetBack(QWidget *parent = nullptr);

    ~GetBack();
private slots:
    void slot_getback_mod_finish(ReqId id,QString res,ErrorCode err);
    void on_GetVerifyPushButton_clicked();
    void on_AffirmPushButton_clicked();

private:
    void ShowTip(QString str,bool is_ok);
    void InitHttpHandlers();
private:
    Ui::GetBack *ui;
    QMap<ReqId,std::function<void(const QJsonObject&)>> _handlers;
};

#endif // GETBACK_H
